<?php

use Illuminate\Routing\Router;

Route::group([
	'prefix'        => 'admin/DesignerAdv',
	'namespace'     => 'Beerus\\Modules\\DesignerAdv\\Controllers',
	'middleware'    => [
		'web',
		'admin',
	],
], function (Router $router) {
	// KA广告占位/排期
	$router->get('/schedule_list/{tab_id}', 'KaAdvScheduleController@index')->name('schedule.list');
	$router->get('/schedule/edit/{id}', 'KaAdvScheduleController@edit');
	$router->post('/schedule_list/save', 'KaAdvScheduleController@save');
	$router->get('/schedule/cancel/{id}', 'KaAdvScheduleController@cancel');
	// KA广告素材管理
	$router->get('/material_list', 'KaAdvMaterialController@index')->name('material.list');
	$router->get('/material_list/{id}/edit', 'KaAdvMaterialController@edit');
	$router->post('/material_list/save', 'KaAdvMaterialController@save');
	// KA广告套餐管理
    $router->get('/combo', 'KaComboController@index')->name('combo.list');
    $router->get('/combo/create', 'KaComboController@edit');
    $router->get('/combo/{id}/edit', 'KaComboController@edit');
    $router->post('/combo/save', 'KaComboController@save');
    $router->get('/combo/resourceDetail', 'KaComboController@resourceDetailList');
    $router->delete('/combo/{id}', 'KaComboController@del');
    // KA广告占位数据
    $router->get('/designer', 'KaDesignerController@index')->name('designer.list');
    $router->get('/designer', 'KaDesignerController@index')->name('designer.list');
});
